FROM python:3.6.2
MAINTAINER yinjunfa
ENV PYTHONUNBUFFERED 1
RUN mkdir /backend
ADD . /backend
WORKDIR /backend
RUN pip install -i https://pypi.douban.com/simple --upgrade pip
RUN pip install -i https://pypi.douban.com/simple -r requirements.txt
RUN chmod u+x docker-entrypoint.sh
ENTRYPOINT ["/bin/bash","docker-entrypoint.sh"]
